<?php


namespace Yond\LaravelDomain\Console;


use Symfony\Component\Console\Input\InputOption;

abstract class DomainGenerator extends GeneratorCommand
{
    protected $domainName;

    protected $defaultOptions = [
        ['domain', null, InputOption::VALUE_REQUIRED, 'The name of the domain'],
    ];


    /**
     * @return bool|null
     */
    public function handle()
    {
        $this->domainName = ucfirst(trim($this->optionOrAsk('domain', 'Please enter the name of domain')));

        return parent::handle();
    }
}